package com.tencent.wxcloudrun.controller;

import com.tencent.wxcloudrun.config.ApiResponse;
import com.tencent.wxcloudrun.dto.UserUpdateRequest;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system/user")
public class UserController {

    @PostMapping("/update")
    public ApiResponse updateUserInfo(@RequestBody UserUpdateRequest request) {
        // TODO: 根据ID更新用户头像路径到数据库
        // 示例：userService.updateHeadPhoto(request.getId(), request.getHeadPhoto());
        return ApiResponse.ok("头像更新成功");
    }
} 